package com.changdu.seatunnel.admin.pojo;

import java.util.List;

import com.changdu.seatunnel.admin.entity.SyncTask;

import lombok.Data;

@Data
public class PageSyncTasks {

	private List<SyncTask> tasks;
	
	private Long total;
	
	public static PageSyncTasks create(List<SyncTask> tasks, Long total) {
		PageSyncTasks pageSyncTasks = new PageSyncTasks();
		pageSyncTasks.setTasks(tasks);
		pageSyncTasks.setTotal(total);
		return pageSyncTasks;
	}
	
}
